<% content_for :title do %>
  <%= :cfw.l %>
<% end %>

<%= error_messages_for 'cfw' %>

<% form_for :cfw, @cfw, :url => admin_call_for_workers_url, :method => :post do |f| %>
<% form_block do %>
  <% fbrow "cfw_message", :cfw_message.l do %>
  <%= f.text_area 'message' %>
  <% end %>
  
  <% fbrow do %>
  <ul>
    <% @events.each do |event|  %>
    <li>
      <%= hidden_field_tag 'events[]',  event.id %>
      <strong><%= h event.name %></strong><br/>
      <%= event.start_date.l %> - 
      <%= event.end_date.l %>
    </li>
    <% end %>
  </ul>
  <% end %>
  
  <% fbrow "really_send_emails", :really_send_emails.l do %>
  <%= check_box_tag "really_send_emails", "true", true %>
  <% end %>
  
  <% fbrow do %>
  <%= submit_tag :send_cfw.l %>
  <% end %>
<% end %>  
<% end %>